package com.assist.common.singleton;

/**
 * Created by wuqiang on 2022/12/7 14:21
 */

public class Singleton {

    private Singleton() {

    }

    private static class SingletonFactory {
        private static Singleton singleton = new Singleton();
    }


    public static Singleton getInstance() {
        return SingletonFactory.singleton;
    }

    public Object readResolve() {
        return getInstance();
    }
}
